package cn.sjxy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 购物车实体类
 * 对应数据库表: shopping
 */
@TableName("shopping")
@Data
public class Md_Shopping {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String userCode;
    private String bookCode;
    private Integer buyQty;
    private String remark;

    // 非数据库字段，用于显示
    @TableField(exist = false)
    private String bookName;  // 图书名称
    
    @TableField(exist = false)
    private java.math.BigDecimal sellPrice;  // 销售价格
}

